package org.lavemylogic.friendsfinder.gps;

import org.lavemylogic.friendsfinder.MainActivity;

import android.app.Activity;
import android.location.LocationManager;

public class CustomLocationManager {
	private LocationManager _locationManager;
	
	public CustomLocationManager(Activity activity) {
		_locationManager = (LocationManager)activity.getSystemService(MainActivity.LOCATION_SERVICE);
	}
	
	public void getCurrentLocation() {
		CustomLocationListener locationListener = new CustomLocationListener();  
		_locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 5000l, 10f, locationListener);
	}
}
